define(['jquery', 'bootstrap', 'select2', 'validate', 'validate.en', 'shiftform'],
function($, validate) {
  return {
    
    init: function(data) {
      this.initPage();
      this.submit();
    },
    
    initPage: function(){
      
      $(document).on('click','#select-all', function(e) {
        var $car = $('input[name="shipmentOrderItems"]');
        $car.prop("checked", $(e.currentTarget).is(':checked'));
      });
      
    },
    
    submit: function() {
      
      $('form').shiftform();
        
    }
              
  }
  
})

